import Vue from 'vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
// 全部样式
import 'element-ui/lib/theme-chalk/index.css';

import './permission' // permission control

import App from './App.vue'
//vue 轮播

Vue.use(ElementUI);
Vue.config.productionTip = false
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper)

Vue.prototype.msgSuccess = function (msg) {
    this.$message({showClose: true, message: msg, type: "success"});
}

Vue.prototype.msgError = function (msg) {
    this.$message({showClose: true, message: msg, type: "error"});
}

Vue.prototype.msgInfo = function (msg) {
    this.$message.info(msg);
}

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
